package cn.kgm.template.dto.base;

import cn.kgm.core.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * @Version 1.8
 * @Author: Kappi
 * @Date: 2024-3-18 17:33
 * @Description: cn.kgm.template.dto.base.TemplateEntity
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class TemplateEntity<T> extends Entity<T> {

    /**
     * 组件名称
     */
    @ApiModelProperty(value = "组件名称")
    @TableField(value = "name", condition = LIKE)
    private String name;

    /**
     * 0,非必填,1,必填
     */
    @ApiModelProperty(value = "0,非必填,1,必填")
    @TableField(value = "is_must")
    private Boolean isMust;

    /**
     * 排序值,越大越靠前
     */
    @ApiModelProperty(value = "排序值,越大越靠前")
    @TableField(value = "sort")
    private Integer sort;
}
